// 定义模型

const Sequelize = require('sequelize');

const sequelize = require('../lib/sequelize')

const ArticleTypeModel = sequelize.define('article_type', {
    id: {
        type: Sequelize.INTEGER,
        autoIncrement: true,
        primaryKey: true
    },
    type_name: Sequelize.STRING(100),
}, {
    tableName: 'article_type'
});

// ArticleTypeModel.sync({force: true})

module.exports = ArticleTypeModel